<template>
  <div class="login-operate">
    <div class="login">
        <div class="icon">
            <!-- <div class="active"><img style="height: 24px !important;" src="../../../assets/icons/login-active.svg" alt=""></div> -->
            <div class="normal"><img style="height: 24px !important;" src="@/assets/icons/login.svg" alt=""></div>
        </div>
        <div class="name" @click="toLogin">Login</div>
    </div>
  </div>
</template>

<script>
export default {
    name: 'Login',
    methods:{
        toLogin(){
            this.$EventBus.$emit("changeCompant", 'LoginPlugin')
        }
    }
}
</script>

<style lang="scss" scoped>
    .login{
        display: flex;
        height: 28px;
        align-items: center;
        margin-top: 15px;
        border-top: 1px solid #e4e4e4;
        padding-top: 10px;
        padding-bottom: 10px;
        .icon{
            cursor: pointer;
            img{
                vertical-align: middle;
            }
            margin-right: 10px;
        }
        .name{
            color: #A1A6C4;
            font-size: 12px;
            cursor: pointer;
        }
    }
</style>